From fc11b4857494309f3468236397aa90c06c1025ac Mon Sep 17 00:00:00 2001 From: Shengjing Zhu Date: Fri, 2 Aug 2024 17:13:32 +0800 Subject: [PATCH] Disable build in setup.py --- ...=> 0002-data-Explicitly-use-python3.patch} | 0 ...te-images-when-reading-docs-on-disk.patch} | 0 ...patch => 0004-Use-system-googletest.patch} | 0 .../0005-Disable-build-in-setup.py.patch | 20 +++++++++++++++++++ debian/patches/series | 7 ++++--- 5 files changed, 24 insertions(+), 3 deletions(-) rename debian/patches/{0003-data-Explicitly-use-python3.patch => 0002-data-Explicitly-use-python3.patch} (100%) rename debian/patches/{0004-no-remote-images-when-reading-docs-on-disk.patch => 0003-no-remote-images-when-reading-docs-on-disk.patch} (100%) rename debian/patches/{0005-Use-system-googletest.patch => 0004-Use-system-googletest.patch} (100%) create mode 100644 debian/patches/0005-Disable-build-in-setup.py.patch diff --git a/debian/patches/0003-data-Explicitly-use-python3.patch b/debian/patches/0002-data-Explicitly-use-python3.patch similarity index 100% rename from debian/patches/0003-data-Explicitly-use-python3.patch rename to debian/patches/0002-data-Explicitly-use-python3.patch diff --git a/debian/patches/0004-no-remote-images-when-reading-docs-on-disk.patch b/debian/patches/0003-no-remote-images-when-reading-docs-on-disk.patch similarity index 100% rename from debian/patches/0004-no-remote-images-when-reading-docs-on-disk.patch rename to debian/patches/0003-no-remote-images-when-reading-docs-on-disk.patch diff --git a/debian/patches/0005-Use-system-googletest.patch b/debian/patches/0004-Use-system-googletest.patch similarity index 100% rename from debian/patches/0005-Use-system-googletest.patch rename to debian/patches/0004-Use-system-googletest.patch diff --git a/debian/patches/0005-Disable-build-in-setup.py.patch b/debian/patches/0005-Disable-build-in-setup.py.patch new file mode 100644 index 0000000..e08a956 --- /dev/null +++ b/debian/patches/0005-Disable-build-in-setup.py.patch @@ -0,0 +1,20 @@ +From: Shengjing Zhu +Date: Fri, 2 Aug 2024 17:11:08 +0800 +Subject: Disable build in setup.py + +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/setup.py b/setup.py +index a4bc500..f32590e 100644 +--- a/setup.py ++++ b/setup.py +@@ -62,6 +62,7 @@ def get_long_description(): + + + def build_libopencc(output_path): ++ return + print('building libopencc into %s' % _build_dir) + + is_windows = sys.platform == 'win32' diff --git a/debian/patches/series b/debian/patches/series index 481132a..b62fc18 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,5 @@ 0001-use-cmake-install-libdir.patch -0003-data-Explicitly-use-python3.patch -0004-no-remote-images-when-reading-docs-on-disk.patch -0005-Use-system-googletest.patch +0002-data-Explicitly-use-python3.patch +0003-no-remote-images-when-reading-docs-on-disk.patch +0004-Use-system-googletest.patch +0005-Disable-build-in-setup.py.patch -- 2.30.2